package com.ztomorrow.ying_cun_plus.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "yc-plus")
public class YcPlusProperties {

    private FileProperties file;

    public static class FileProperties {
        private UploadProperties upload;

        public static class UploadProperties {
            private String path;

            public String getPath() {
                return path;
            }

            public void setPath(String path) {
                this.path = path;
            }
        }

        public UploadProperties getUpload() {
            return upload;
        }

        public void setUpload(UploadProperties upload) {
            this.upload = upload;
        }
    }

    public FileProperties getFile() {
        return file;
    }

    public void setFile(FileProperties file) {
        this.file = file;
    }
}
